package com.yanqu.road.entity.activity.stronghold;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

@FieldTypeAnnotation(tableName = "t_c_activity_stronghold_wild")
public class StrongholdHouseData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(update = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(update = true, desc = "野外据点id")
    private int houseId;

    @FieldTypeAnnotation(desc = "上次刷新宝箱时间")
    private long refreshBoxTime;

    public int getActivityId() {
        return activityId;
    }

    public int getHouseId() {
        return houseId;
    }

    public long getRefreshBoxTime() {
        return refreshBoxTime;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }

    }
    public void setHouseId(int houseId) {
        if (this.houseId != houseId) {
            this.houseId = houseId;
        }

    }
    public void setRefreshBoxTime(long refreshBoxTime) {
        if (this.refreshBoxTime != refreshBoxTime) {
            this.refreshBoxTime = refreshBoxTime;
            setOp(DataStatus.Update);
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }
}
